package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.FootPrint;
import com.cskaoyan.bean.ListData;
import com.cskaoyan.service.AdminFootprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨杰
 * @version V1.0
 * @Package com.cskaoyan.controller
 * @date 2020/12/5 20:06
 * @Copyright © 暂时还没有
 */
@RestController
@RequestMapping("admin/footprint")
public class AdminFootprintController {
    @Autowired
    AdminFootprintService footprintService;
    @RequestMapping("list")
    public BaseRespVo adminFootprintList
            (Integer page, Integer limit, String sort, String order,Integer userId,Integer goodsId){

        ListData<FootPrint> listData =
                footprintService.adminFootprintList(page, limit, sort, order, userId, goodsId);
        return BaseRespVo.ok(listData);
    }

}
